<!-- 下拉组件 -->
<template>
	<view class="select">
		<div class="select-outside">
			<div class="nav-select" v-for="(item,index) in rundata">
				<div>
					<text>{{item.id}}</text>
					<uni-combox></uni-combox>
					<i></i>
				</div>
			</div>
		</div>
		<div style="height: 250px;" @click="overflas"></div>
	</view>
</template>

<script>
import {list,pages} from '@/common/api/job/jobapi.js'
export default {
	props:{
		rows: {
			default: ''
		}
	},
	data(){
		return {
			dataSorce: ['最新创建','最后更近','理我最近'],
			rundata: []
		}
	},
	mounted() {
		list({source: 'crm'}).then((row) => {
			pages({'dtos':row.data}).then((val) => {
				if(this.rows == 0){
					this.rundata = val.data.records;
					console.log(this.rundata)
				}
			})
		})
	},
	methods:{
		overflas(){
			this.$emit('oushow',0)
		}	
	}
}
</script>

<style scoped lang="scss">
.select{
	width: 100%;
	height: 400px;
	background-color: #fff;
}
.nav-select {
	height: 80rpx;
	border-bottom: 1px solid #C8C7CC;
	overflow: auto;
}
.nav-select div {
	display: flex;
	line-height: 80rpx;
	width: 95%;
	margin: auto;
	justify-content: space-between;
}
.select-outside {
	height: 400px;
	overflow: auto;
}
</style>
